package co.gov.medellin.ssti.sub.model.service.impl;

import java.util.Collection;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import co.gov.medellin.ssti.sub.model.dao.ModificarBOTDAO;
import co.gov.medellin.ssti.sub.model.dao.exception.DAOException;
import co.gov.medellin.ssti.sub.model.service.ModificarBOTService;
import co.gov.medellin.ssti.sub.model.vo.AtributoVO;
import co.gov.medellin.ssti.sub.model.vo.ModificarBOTVO;

@Service
public class ModificarBOTServiceImpl implements ModificarBOTService {
	@Autowired
	ModificarBOTDAO modificarBOTDAOImpl2;

	public Collection<AtributoVO> findAtributosSubpro(String codeSubpro) {
		try {
			return modificarBOTDAOImpl2.findAtributosSubpro(codeSubpro);
		} catch (Exception e) {
			throw new DAOException(e);
		}
	}

	public String findSedeOtorgamientoByCodBot(String codeBot) {
		try {
			return modificarBOTDAOImpl2.findSedeOtorgamientoByCodBot(codeBot);
		} catch (Exception e) {
			throw new DAOException(e);
		}
	}

	public String findBeneficiarioAtri(String tipodato, String codebene,
			String codeAtri) {
		try {
			return modificarBOTDAOImpl2.findBeneficiarioAtri(tipodato,
					codebene, codeAtri);
		} catch (Exception e) {
			throw new DAOException(e);
		}
	}

	public ModificarBOTVO findBeneficioAtri(String tipoDato,
			String codeBeneOtor, String codeAtri) {
		try {
			return modificarBOTDAOImpl2.findBeneficioAtri(tipoDato,
					codeBeneOtor, codeAtri);
		} catch (Exception e) {
			throw new DAOException(e);
		}
	}

}
